package com.example.teesystem.entity.vo.examPaper;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import javax.validation.constraints.NotNull;
import java.util.Date;

/**
 * @author : NieYaShi
 * @version : v1.0
 * @createTime : 2022/4/11 15:56
 * 用于发布试卷
 */
@Data
public class ExamPaperUpdateVo {
    @NotNull(message = "试卷id不能为空")
    private Integer id;

    @NotNull(message = "考试开始时间不能为空")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm", timezone = "GMT+8")
    private Date startTime;

    @NotNull(message = "考试结束时间不能为空")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm", timezone = "GMT+8")
    private Date endTime;

    @NotNull(message = "班级不能为空")
    private int[] classIds;
}
